<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改公告内容')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-post-edit" th:object="${content}">
		<input id="typeId" name="typeId" type="hidden" th:field="*{contentId}"/>
		<div class="form-group">

			<div class="col-md-12">
				<div class="form-group">
					<label class="col-sm-3 control-label">类型名称</label>
					<div class="col-sm-9">
						<select class="form-control" name="typeId">
							<option th:each="cmsType:${vos}" th:value="${cmsType.typeId}"  th:selected="${content.typeId eq cmsType.typeId}">[[${cmsType.typeName}]]</option>
						</select>

					</div>
				</div>
			</div>

		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">公告标题：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="contentTitle" id="contentTitle" th:field="*{contentTitle}" required>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label ">公告内容：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="contentText" id="contentText" th:field="*{contentText}" required>
			</div>
		</div>


		<div class="form-group">
			<label class="col-sm-3 control-label">备注：</label>
			<div class="col-sm-8">
				<textarea id="remark" name="remark" class="form-control">[[*{remark}]]</textarea>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
	var prefix = ctx + "cms/content";


	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
		}
	}
</script>
</body>
</html>
